﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IList<RushTracker.Core.Models.Torrents.File>>" %>

<div class="metadata-list-wrapper">
    <table class="metadata-list">
        <tr>
            <td style="width: 20px;"></td>
            <td class="header">Filename</td>
            <td class="header">Size</td>
        </tr>
        <% foreach (File f in Model)
           { %>
        
        <tr>
            <td><img src="<%: UIHelper.GetIconFromFileName(f.FileName) %>" alt="icon" /></td>
            <td><%: f.FileName %></td>
            <td><%: UIHelper.GetFileSizeAsString(f.Length) %></td>
        </tr>
        
        <% } %>
    </table>
</div>